#include "Player.h"

namespace BncImb {
namespace Domain {

int Player::playsInJail() const {
  return mPlaysInJail;
}

void Player::increasePlaysInJail() {
  ++mPlaysInJail;
}

const string& Player::name() const {
  return mName;
}
        
void Player::name(const string& val) {
  mName = val;
}

ColorType Player::color() const {
  return mColor;
}  

const BankAccount& Player::account() const {
  return mAccount;
}

bool Player::isInJail() const {
  return mIsInJail;
}

bool Player::hasJailKey() const {
  return mHasJailKey;
}

void Player::makeTransaction(double value, const string& sourceAccountCode) {
  mAccount.makeTransaction(value, sourceAccountCode);
}
}
}